﻿import request from '/@/utils/request';
enum Api {
  AddSysPrintTemplate = '/api/sysPrintTemplate/add',
  DeleteSysPrintTemplate = '/api/sysPrintTemplate/delete',
  UpdateSysPrintTemplate = '/api/sysPrintTemplate/update',
  PageSysPrintTemplate = '/api/sysPrintTemplate/page',
  DetailSysPrintTemplate = '/api/sysPrintTemplate/detail',
}

// 增加打印模板2
export const addSysPrintTemplate = (params?: any) =>
	request({
		url: Api.AddSysPrintTemplate,
		method: 'post',
		data: params,
	});

// 删除打印模板2
export const deleteSysPrintTemplate = (params?: any) => 
	request({
			url: Api.DeleteSysPrintTemplate,
			method: 'post',
			data: params,
		});

// 编辑打印模板2
export const updateSysPrintTemplate = (params?: any) => 
	request({
			url: Api.UpdateSysPrintTemplate,
			method: 'post',
			data: params,
		});

// 分页查询打印模板2
export const pageSysPrintTemplate = (params?: any) => 
	request({
			url: Api.PageSysPrintTemplate,
			method: 'post',
			data: params,
		});

// 详情打印模板2
export const detailSysPrintTemplate = (id: any) => 
	request({
			url: Api.DetailSysPrintTemplate,
			method: 'get',
			data: { id },
		});


